const Layout = () => import('@/layout/Index.vue')
const Cdk = () => import('@/views/another/Cdk.vue')
const Activity = () => import('@/views/another/Activity.vue')
const ActivityEdit = () => import('@/views/another/ActivityEdit.vue')
const ActivityAdd = () => import('@/views/another/ActivityAdd.vue')
const ActivityManage = () => import('@/views/another/ActivityManage.vue')
const ActivityDetails = () => import('@/views/another/LotteryDetail.vue')
export default [
  {
    path: '/another',
    component: Layout,
    name: 'another',
    meta: {
      title: '综合管理',
    },
    icon: 'another',
    roles: ['admin', 'visitor'],
    children:[
      {
        path: 'cdk',
        name: 'cdkList',
        component: Cdk,
        meta: {
          title: '月卡CDK',
          roles: ['admin'],
        },
      },{
        path: 'activity',
        name: 'activityList',
        component: Activity,
        meta: {
          title: '抽奖活动',
          roles: ['admin'],
        },
      },
      {
        path: '/activity/edit/:id',
        name: 'ActivityEdit',
        component: ActivityEdit,
        meta: {
          title: '编辑抽奖活动',
          roles: ['admin'],
        },
        hidden: true,
      },
      {
        path: '/activity/add',
        name: 'ActivityAdd',
        component: ActivityAdd,
        meta: {
          title: '新增抽奖活动',
          roles: ['admin'],
        },
        hidden: true,
      },
      {
        path: '/activity/manage/:id',
        name: 'ActivityManage',
        component: ActivityManage,
        meta: {
          title: '管理抽奖活动',
          roles: ['admin'],
        },
        hidden: true,
      },
    ],
  },
  {
    path: '/activity/details/:id',
    name: 'ActivityDetails',
    component: ActivityDetails,
    meta: {
      title: '抽奖活动',
      roles: ['admin'],
    },
    hidden: true,
  },
]